package com.echo.register.commons.config;

import com.echo.register.domain.VoteRecords;

public class UserHolder {

    private final static ThreadLocal<VoteRecords> userHolder = new ThreadLocal<>();

    public static void add(VoteRecords records){
        userHolder.set(records);
    }

    public static VoteRecords get(){
        return userHolder.get();
    }

    public static void remove(){
        userHolder.remove();
    }
}
